SAXON=$$HOME/bin/saxon

tests: gcontacts gdocs gissue

gcontacts:
	read -p "Username: " user && \
	read -p "Password: " pwd  && \
	"$(SAXON)" --xslt \
	    --resolve http://fgeorges.org/ns/google/gcontacts.xsl ../../xsl/gcontacts.xsl \
	    -xsl:gcontacts-test.xsl -it:main \
	    user="$$user" pwd="$$pwd" 2>&1 | tee gcontacts-test.log

gdocs:
	read -p "Username: " user && \
	read -p "Password: " pwd  && \
	"$(SAXON)" --xslt \
	    --resolve http://fgeorges.org/ns/google/gdocs.xsl ../../xsl/gdocs.xsl \
	    -xsl:gdocs-test.xsl -it:main \
	    user="$$user" pwd="$$pwd" 2>&1 | tee gdocs-test.log

gissue:
	read -p "Username: " user && \
	read -p "Password: " pwd  && \
	"$(SAXON)" --xslt \
	    --resolve http://fgeorges.org/ns/google/gissue.xsl ../../xsl/gissue.xsl \
	    -xsl:gissue-test.xsl -it:main \
	    user="$$user" pwd="$$pwd" 2>&1 | tee gissue-test.log

.PHONY: tests gcontacts gdocs gissue
